package com.lancoo.klgcourseware.ui.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewpager.widget.ViewPager;

/**
 * Created by pengmi on 2020/8/31 16:58
 * Description:
 */
public class KlgCustomViewPager extends ViewPager {
    public KlgCustomViewPager(@NonNull Context context) {
        super(context);
    }

    public KlgCustomViewPager(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        try{
            return super.onInterceptTouchEvent(ev);
        }catch(IllegalArgumentException ex) {
            ex.printStackTrace();
        }
        return false;
    }
    @Override
    public boolean onTouchEvent(MotionEvent ev) {
        try{
            return super.onTouchEvent(ev);
        }catch(IllegalArgumentException ex) {
            ex.printStackTrace();
        }
        return false;
    }




}
